<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>车次信息</title>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
	$(function() {
		$("#del").click(function() {
			$.each($('input:checkbox:checked'), function() {
				alert($(this).val());
				
			});
		});
	})
</script>
</head>
<body>
	<table width="825" height="128" border="1">
		<tr>
			<td width="45" align="center"><a id="del" name="del" href="#">删除</a></td>
			<td width="84" align="center">车次</td>
			<td width="176" align="center">发车——到达</td>
			<td width="175" align="center">发时——到时</td>
			<td width="153" align="center">车型</td>
			<td width="152" align="center">运行时间（小时）</td>
		</tr>
		<c:forEach items="${requestScope.trainList}" var="train"
			varStatus="test">
			<c:if test="${test.count %2>0}" var="temp">
				<tr bgcolor="#CCCCCC">
			</c:if>
			<c:if test="${test.count %2==0}" var="temp1">
				<tr>
			</c:if>
			<td height="44" align="center"><input type="checkbox"
				name="CheckboxGroup1" value="${train.train_no}"
				id="CheckboxGroup1_0" /></td>
			<td align="center">${train.train_no}</td>
			<td align="center">${train.start_station}--${train.arrival_station}</td>
			<td align="center">${train.start_time}--${train.arrival_time}</td>
			<td align="center">${train.type}</td>
			<td align="center">${train.runtime}</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>